home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-08-31 | 7.0 KB | [TEXT/KEEN] |
open in:
MacOS 8.1
|
Win98
|
DOS
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
You can browse this item here: EnterAct's magic clipboard
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Thu Aug 31 00:36:33 1995, modified Thu Aug 31 00:36:33 1995, creator 'KEEN', type ASCII, 6509 bytes "EnterAct's magic clipboard" , at 0x19ed 504 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KEEN] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 1a 45 6e 74 65 72 41 | 63 74 27 73 20 6d 61 67 |..EnterA|ct's mag|
|00000010| 69 63 20 63 6c 69 70 62 | 6f 61 72 64 00 00 00 00 |ic clipb|oard....|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 45 45 | 4e 01 00 00 00 00 00 00 |.TEXTKEE|N.......|
|00000050| 00 00 00 00 00 19 6d 00 | 00 01 f8 ac 6a ec d1 ac |......m.|....j...|
|00000060| 6a ec d1 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |j.......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 a3 bb 00 00 |........|........|
|00000080| 45 6e 74 65 72 41 63 74 | 27 73 20 6d 61 67 69 63 |EnterAct|'s magic|
|00000090| 20 63 6c 69 70 62 6f 61 | 72 64 0d 2d 2d 2d 2d 2d | clipboa|rd.-----|
|000000a0| 2d 2d 2d 2d 2d 2d 2d 2d | 2d 2d 2d 2d 2d 2d 2d 2d |--------|--------|
|000000b0| 2d 2d 2d 0d 0d 50 72 65 | 72 65 71 75 69 73 69 74 |---..Pre|requisit|
|000000c0| 65 73 3a 20 79 6f 75 20 | 73 68 6f 75 6c 64 20 73 |es: you |should s|
|000000d0| 65 65 20 74 68 65 20 22 | 68 41 57 4b 20 55 73 65 |ee the "|hAWK Use|
|000000e0| 72 d5 73 20 4d 61 6e 75 | 61 6c 22 20 61 6e 64 20 |r.s Manu|al" and |
|000000f0| 72 65 61 64 0d 65 6e 6f | 75 67 68 20 74 6f 20 6b |read.eno|ugh to k|
|00000100| 6e 6f 77 20 68 6f 77 20 | 74 6f 20 72 75 6e 20 68 |now how |to run h|
|00000110| 41 57 4b 20 70 72 6f 67 | 72 61 6d 73 20 62 65 66 |AWK prog|rams bef|
|00000120| 6f 72 65 20 64 69 76 69 | 6e 67 20 69 6e 20 68 65 |ore divi|ng in he|
|00000130| 72 65 2e 0d 48 6f 77 65 | 76 65 72 2c 20 6e 6f 20 |re..Howe|ver, no |
|00000140| 68 61 72 6d 20 69 6e 20 | 62 72 6f 77 73 69 6e 67 |harm in |browsing|
|00000150| 2e 2e 2e 2e 0d 0d 41 64 | 64 65 64 20 66 6f 72 20 |......Ad|ded for |
|00000160| 76 65 72 73 69 6f 6e 20 | 33 20 6f 66 20 45 6e 74 |version |3 of Ent|
|00000170| 65 72 41 63 74 2c 20 79 | 6f 75 20 63 61 6e 20 6e |erAct, y|ou can n|
|00000180| 6f 77 20 77 72 69 74 65 | 20 68 41 57 4b 0d 70 72 |ow write| hAWK.pr|
|00000190| 6f 67 72 61 6d 73 20 74 | 68 61 74 20 77 61 74 63 |ograms t|hat watc|
|000001a0| 68 20 45 6e 74 65 72 41 | 63 74 27 73 20 63 6c 69 |h EnterA|ct's cli|
|000001b0| 70 62 6f 61 72 64 2c 20 | 61 6e 64 2c 20 77 68 65 |pboard, |and, whe|
|000001c0| 6e 20 79 6f 75 72 0d 73 | 70 65 63 69 66 69 65 64 |n your.s|pecified|
|000001d0| 20 63 6f 6e 64 69 74 69 | 6f 6e 73 20 61 72 65 20 | conditi|ons are |
|000001e0| 6d 65 74 2c 20 77 72 69 | 74 65 20 61 6e 79 74 68 |met, wri|te anyth|
|000001f0| 69 6e 67 20 79 6f 75 20 | 6c 69 6b 65 20 62 61 63 |ing you |like bac|
|00000200| 6b 20 74 6f 20 74 68 65 | 0d 63 6c 69 70 62 6f 61 |k to the|.clipboa|
|00000210| 72 64 2e 20 54 68 69 73 | 20 67 69 76 65 73 20 79 |rd. This| gives y|
|00000220| 6f 75 20 69 6e 20 65 66 | 66 65 63 74 20 61 20 22 |ou in ef|fect a "|
|00000230| 6d 61 67 69 63 20 63 6c | 69 70 62 6f 61 72 64 22 |magic cl|ipboard"|
|00000240| 2c 20 69 64 65 61 6c 20 | 66 6f 72 0d 72 65 64 75 |, ideal |for.redu|
|00000250| 63 69 6e 67 20 72 65 70 | 65 74 69 74 69 76 65 2c |cing rep|etitive,|
|00000260| 20 6d 6f 64 65 72 61 74 | 65 6c 79 20 63 6f 6d 70 | moderat|ely comp|
|00000270| 6c 69 63 61 74 65 64 20 | 74 61 73 6b 73 20 74 6f |licated |tasks to|
|00000280| 20 61 20 73 69 6d 70 6c | 65 0d 43 6f 70 79 20 61 | a simpl|e.Copy a|
|00000290| 6e 64 20 50 61 73 74 65 | 2e 0d 0d 57 68 65 6e 20 |nd Paste|...When |
|000002a0| 79 6f 75 27 72 65 20 64 | 6f 6e 65 20 77 69 74 68 |you're d|one with|
|000002b0| 20 79 6f 75 72 20 68 41 | 57 4b 20 22 6d 61 67 69 | your hA|WK "magi|
|000002c0| 63 20 63 6c 69 70 62 6f | 61 72 64 22 20 70 72 6f |c clipbo|ard" pro|
|000002d0| 67 72 61 6d 2c 0d 79 6f | 75 20 63 61 6e 20 73 74 |gram,.yo|u can st|
|000002e0| 6f 70 20 69 74 20 77 69 | 74 68 20 3c 43 6f 6d 6d |op it wi|th <Comm|
|000002f0| 61 6e 64 3e 3c 70 65 72 | 69 6f 64 3e 2e 0d 0d 45 |and><per|iod>...E|
|00000300| 78 61 6d 70 6c 65 20 70 | 72 6f 67 72 61 6d 73 2c |xample p|rograms,|
|00000310| 20 69 6e 20 74 68 65 20 | 22 68 41 57 4b 20 70 72 | in the |"hAWK pr|
|00000320| 6f 67 72 61 6d 73 22 20 | 66 6f 6c 64 65 72 3a 0d |ograms" |folder:.|
|00000330| 22 24 43 6c 69 70 47 6c | 6f 73 73 61 72 79 22 20 |"$ClipGl|ossary" |
|00000340| 6c 65 74 73 20 79 6f 75 | 20 72 65 6d 65 6d 62 65 |lets you| remembe|
|00000350| 72 20 61 6e 64 20 65 78 | 70 61 6e 64 20 67 6c 6f |r and ex|pand glo|
|00000360| 73 73 61 72 79 20 61 62 | 62 72 65 76 69 61 74 69 |ssary ab|breviati|
|00000370| 6f 6e 73 2e 0d 22 24 43 | 6c 69 70 4f 6c 64 43 44 |ons.."$C|lipOldCD|
|00000380| 65 63 6c 54 6f 4e 65 77 | 22 20 63 6f 6e 76 65 72 |eclToNew|" conver|
|00000390| 74 73 20 6f 6c 64 20 43 | 20 64 65 63 6c 61 72 61 |ts old C| declara|
|000003a0| 74 69 6f 6e 73 20 74 6f | 20 6e 65 77 20 41 4e 53 |tions to| new ANS|
|000003b0| 49 20 73 74 79 6c 65 2e | 0d 22 24 43 6c 69 70 4d |I style.|."$ClipM|
|000003c0| 61 67 69 63 54 65 6d 70 | 6c 61 74 65 22 20 69 73 |agicTemp|late" is|
|000003d0| 20 61 20 73 74 72 69 70 | 70 65 64 2d 64 6f 77 6e | a strip|ped-down|
|000003e0| 20 73 69 6d 70 6c 65 20 | 65 78 61 6d 70 6c 65 20 | simple |example |
|000003f0| 74 6f 20 62 75 69 6c 64 | 20 6f 6e 2c 0d 74 61 6c |to build| on,.tal|
|00000400| 6b 65 64 20 61 62 6f 75 | 74 20 62 65 6c 6f 77 2e |ked abou|t below.|
|00000410| 0d 22 24 43 6c 69 70 46 | 6f 72 6d 61 74 46 75 6e |."$ClipF|ormatFun|
|00000420| 63 49 6e 74 72 6f 22 20 | 77 69 6c 6c 20 72 65 66 |cIntro" |will ref|
|00000430| 6f 72 6d 61 74 20 61 20 | 6d 65 73 73 79 20 66 75 |ormat a |messy fu|
|00000440| 6e 63 74 69 6f 6e 20 73 | 74 61 72 74 20 69 6e 74 |nction s|tart int|
|00000450| 6f 0d 73 6f 6d 65 74 68 | 69 6e 67 20 65 6c 65 67 |o.someth|ing eleg|
|00000460| 61 6e 74 20 28 69 6e 73 | 74 72 75 63 74 69 6f 6e |ant (ins|truction|
|00000470| 73 20 61 72 65 20 61 74 | 20 74 68 65 20 62 65 67 |s are at| the beg|
|00000480| 69 6e 6e 69 6e 67 20 6f | 66 20 69 74 73 20 66 69 |inning o|f its fi|
|00000490| 6c 65 29 2e 0d 0d a4 09 | 48 6f 77 20 69 74 20 77 |le).....|How it w|
|000004a0| 6f 72 6b 73 0d 42 79 20 | 64 65 66 61 75 6c 74 2c |orks.By |default,|
|000004b0| 20 61 6e 79 20 68 41 57 | 4b 20 70 72 6f 67 72 61 | any hAW|K progra|
|000004c0| 6d 20 79 6f 75 20 73 74 | 61 72 74 20 75 70 20 77 |m you st|art up w|
|000004d0| 68 69 6c 65 20 75 73 69 | 6e 67 20 45 6e 74 65 72 |hile usi|ng Enter|
|000004e0| 41 63 74 0d 77 69 6c 6c | 20 72 75 6e 20 63 6f 6e |Act.will| run con|
|000004f0| 63 75 72 72 65 6e 74 6c | 79 20 77 69 74 68 20 45 |currentl|y with E|
|00000500| 6e 74 65 72 41 63 74 2e | 20 42 69 67 20 68 41 57 |nterAct.| Big hAW|
|00000510| 4b 20 70 72 6f 67 72 61 | 6d 73 20 63 61 6e 20 74 |K progra|ms can t|
|00000520| 61 6b 65 0d 61 20 77 68 | 69 6c 65 2c 20 73 6f 20 |ake.a wh|ile, so |
|00000530| 74 68 69 73 20 61 6c 6c | 6f 77 73 20 79 6f 75 20 |this all|ows you |
|00000540| 74 6f 20 63 6f 6e 74 69 | 6e 75 65 20 77 6f 72 6b |to conti|nue work|
|00000550| 69 6e 67 20 77 69 74 68 | 20 45 6e 74 65 72 41 63 |ing with| EnterAc|
|00000560| 74 0d 77 68 69 6c 65 20 | 68 41 57 4b 20 63 68 75 |t.while |hAWK chu|
|00000570| 67 73 20 61 77 61 79 2c | 20 66 6f 72 20 74 68 65 |gs away,| for the|
|00000580| 20 6d 6f 73 74 20 70 61 | 72 74 20 75 6e 6f 62 74 | most pa|rt unobt|
|00000590| 72 75 73 69 76 65 6c 79 | 2c 20 69 6e 0d 74 68 65 |rusively|, in.the|
|000005a0| 20 62 61 63 6b 67 72 6f | 75 6e 64 2e 20 4d 6f 73 | backgro|und. Mos|
|000005b0| 74 20 6f 66 20 74 68 65 | 20 74 69 6d 65 2c 20 79 |t of the| time, y|
|000005c0| 6f 75 27 6c 6c 20 72 75 | 6e 20 68 41 57 4b 20 70 |ou'll ru|n hAWK p|
|000005d0| 72 6f 67 72 61 6d 73 20 | 74 68 61 74 0d 64 6f 20 |rograms |that.do |
|000005e0| 6f 6e 65 20 73 70 65 63 | 69 66 69 63 20 6a 6f 62 |one spec|ific job|
|000005f0| 20 61 6e 64 20 74 68 65 | 6e 20 71 75 69 74 20 2d | and the|n quit -|
|00000600| 2d 20 62 75 74 20 77 68 | 61 74 20 69 66 20 69 74 |- but wh|at if it|
|00000610| 20 6a 75 73 74 20 6b 65 | 70 74 0d 72 75 6e 6e 69 | just ke|pt.runni|
|00000620| 6e 67 20 61 6e 64 20 72 | 75 6e 6e 69 6e 67 20 61 |ng and r|unning a|
|00000630| 6e 64 20 72 75 6e 6e 69 | 6e 67 3f 0d 0d 68 41 57 |nd runni|ng?..hAW|
|00000640| 4b 20 68 61 73 20 74 77 | 6f 20 73 70 65 63 69 61 |K has tw|o specia|
|00000650| 6c 20 62 75 69 6c 74 2d | 69 6e 20 66 75 6e 63 74 |l built-|in funct|
|00000660| 69 6f 6e 73 2c 20 67 65 | 74 63 6c 69 70 28 29 20 |ions, ge|tclip() |
|00000670| 61 6e 64 20 70 75 74 63 | 6c 69 70 28 29 2c 0d 74 |and putc|lip(),.t|
|00000680| 68 61 74 20 61 6c 6c 6f | 77 20 69 74 20 74 6f 20 |hat allo|w it to |
|00000690| 6d 6f 6e 69 74 6f 72 20 | 61 6e 64 20 63 68 61 6e |monitor |and chan|
|000006a0| 67 65 20 45 6e 74 65 72 | 41 63 74 27 73 20 70 72 |ge Enter|Act's pr|
|000006b0| 69 76 61 74 65 20 63 6c | 69 70 62 6f 61 72 64 2e |ivate cl|ipboard.|
|000006c0| 0d 41 72 6d 65 64 20 77 | 69 74 68 20 74 68 65 73 |.Armed w|ith thes|
|000006d0| 65 2c 20 79 6f 75 20 63 | 61 6e 20 77 72 69 74 65 |e, you c|an write|
|000006e0| 20 61 20 68 41 57 4b 20 | 70 72 6f 67 72 61 6d 20 | a hAWK |program |
|000006f0| 74 68 61 74 20 72 75 6e | 73 0d 22 66 6f 72 65 76 |that run|s."forev|
|00000700| 65 72 22 2c 20 61 6e 64 | 20 64 6f 65 73 20 73 70 |er", and| does sp|
|00000710| 65 63 69 66 69 63 20 74 | 68 69 6e 67 73 20 74 6f |ecific t|hings to|
|00000720| 20 74 68 65 20 63 6c 69 | 70 62 6f 61 72 64 20 75 | the cli|pboard u|
|00000730| 6e 64 65 72 0d 73 70 65 | 63 69 66 69 63 20 63 69 |nder.spe|cific ci|
|00000740| 72 63 75 6d 73 74 61 6e | 63 65 73 2e 20 57 68 61 |rcumstan|ces. Wha|
|00000750| 74 20 61 6c 6c 20 74 68 | 6f 73 65 20 73 70 65 63 |t all th|ose spec|
|00000760| 69 66 69 63 73 20 61 72 | 65 20 69 73 20 75 70 20 |ifics ar|e is up |
|00000770| 74 6f 20 79 6f 75 2e 0d | 0d a4 09 41 6e 20 65 78 |to you..|...An ex|
|00000780| 61 6d 70 6c 65 0d 53 69 | 6e 63 65 20 61 6e 20 6f |ample.Si|nce an o|
|00000790| 75 6e 63 65 20 6f 66 20 | 63 6f 64 65 20 69 73 20 |unce of |code is |
|000007a0| 6f 66 74 65 6e 20 77 6f | 72 74 68 20 61 20 70 6f |often wo|rth a po|
|000007b0| 75 6e 64 20 6f 66 20 65 | 78 70 6c 61 6e 61 74 69 |und of e|xplanati|
|000007c0| 6f 6e 2c 0d 68 65 72 65 | 27 73 20 61 6e 20 65 78 |on,.here|'s an ex|
|000007d0| 61 6d 70 6c 65 20 6f 66 | 20 61 20 6c 6f 6f 70 20 |ample of| a loop |
|000007e0| 79 6f 75 20 63 61 6e 20 | 75 73 65 20 74 6f 20 6d |you can |use to m|
|000007f0| 6f 6e 69 74 6f 72 20 74 | 68 65 20 63 6c 69 70 62 |onitor t|he clipb|
|00000800| 6f 61 72 64 0d 61 6e 64 | 20 74 72 69 67 67 65 72 |oard.and| trigger|
|00000810| 20 61 63 74 69 6f 6e 20 | 75 6e 64 65 72 20 73 70 | action |under sp|
|00000820| 65 63 69 66 69 63 20 63 | 69 72 63 75 6d 73 74 61 |ecific c|ircumsta|
|00000830| 6e 63 65 73 3a 0d 0d 09 | 23 24 43 6c 69 70 4d 61 |nces:...|#$ClipMa|
|00000840| 67 69 63 54 65 6d 70 6c | 61 74 65 3a 20 79 6f 75 |gicTempl|ate: you|
|00000850| 20 63 61 6e 20 75 73 65 | 20 74 68 69 73 20 61 73 | can use| this as|
|00000860| 20 74 68 65 20 62 61 73 | 69 73 20 66 6f 72 20 79 | the bas|is for y|
|00000870| 6f 75 72 0d 09 23 20 6f | 77 6e 20 63 6c 69 70 62 |our..# o|wn clipb|
|00000880| 6f 61 72 64 20 63 68 61 | 6e 67 65 72 73 2e 20 54 |oard cha|ngers. T|
|00000890| 68 69 73 20 65 78 61 6d | 70 6c 65 20 6a 75 73 74 |his exam|ple just|
|000008a0| 20 74 72 75 6e 63 61 74 | 65 73 20 74 68 65 0d 09 | truncat|es the..|
|000008b0| 23 20 63 6c 69 70 20 74 | 6f 20 69 74 73 20 6c 61 |# clip t|o its la|
|000008c0| 73 74 20 6c 69 6e 65 2c | 20 70 72 6f 76 69 64 65 |st line,| provide|
|000008d0| 64 20 69 74 20 73 74 61 | 72 74 73 20 77 69 74 68 |d it sta|rts with|
|000008e0| 20 61 20 73 70 61 63 65 | 2e 0d 09 42 45 47 49 4e | a space|...BEGIN|
|000008f0| 20 7b 0d 09 09 63 6c 69 | 70 43 68 61 72 73 54 6f | {...cli|pCharsTo|
|00000900| 57 61 74 63 68 20 3d 20 | 33 32 3b 0d 09 09 77 68 |Watch = |32;...wh|
|00000910| 69 6c 65 20 28 31 29 20 | 23 20 72 75 6e 20 75 6e |ile (1) |# run un|
|00000920| 74 69 6c 20 3c 43 6f 6d | 6d 61 6e 64 3e 3c 70 65 |til <Com|mand><pe|
|00000930| 72 69 6f 64 3e 2e 2e 2e | 0d 09 09 09 7b 0d 09 09 |riod>...|....{...|
|00000940| 09 23 20 73 65 65 20 69 | 66 20 63 6c 69 70 62 6f |.# see i|f clipbo|
|00000950| 61 72 64 20 68 61 73 20 | 63 68 61 6e 67 65 64 0d |ard has |changed.|
|00000960| 09 09 09 69 66 20 28 28 | 6e 65 77 43 6c 69 70 20 |...if ((|newClip |
|00000970| 3d 20 67 65 74 63 6c 69 | 70 28 63 6c 69 70 43 68 |= getcli|p(clipCh|
|00000980| 61 72 73 54 6f 57 61 74 | 63 68 29 29 20 21 3d 20 |arsToWat|ch)) != |
|00000990| 6f 6c 64 43 6c 69 70 29 | 0d 09 09 09 09 7b 0d 09 |oldClip)|.....{..|
|000009a0| 09 09 09 6f 6c 64 43 6c | 69 70 20 3d 20 6e 65 77 |...oldCl|ip = new|
|000009b0| 43 6c 69 70 3b 0d 09 09 | 09 09 23 20 61 20 6c 65 |Clip;...|..# a le|
|000009c0| 61 64 69 6e 67 20 73 70 | 61 63 65 20 69 73 20 75 |ading sp|ace is u|
|000009d0| 73 65 64 20 61 73 20 74 | 68 65 20 74 72 69 67 67 |sed as t|he trigg|
|000009e0| 65 72 0d 09 09 09 09 69 | 66 20 28 73 75 62 73 74 |er.....i|f (subst|
|000009f0| 72 28 6e 65 77 43 6c 69 | 70 2c 20 31 2c 31 29 20 |r(newCli|p, 1,1) |
|00000a00| 3d 3d 20 22 20 22 29 0d | 09 09 09 09 09 44 6f 53 |== " ").|.....DoS|
|00000a10| 6f 6d 65 74 68 69 6e 67 | 28 29 0d 09 09 09 09 7d |omething|().....}|
|00000a20| 0d 09 09 09 7d 0d 09 09 | 7d 0d 0d 09 66 75 6e 63 |....}...|}...func|
|00000a30| 74 69 6f 6e 20 44 6f 53 | 6f 6d 65 74 68 69 6e 67 |tion DoS|omething|
|00000a40| 28 09 09 09 66 75 6c 6c | 43 6c 69 70 2c 20 6e 75 |(...full|Clip, nu|
|00000a50| 6d 4c 69 6e 65 73 2c 20 | 6c 69 6e 65 73 2c 20 6f |mLines, |lines, o|
|00000a60| 75 74 43 6c 69 70 2c 20 | 6f 75 74 29 0d 09 09 7b |utClip, |out)...{|
|00000a70| 0d 09 09 66 75 6c 6c 43 | 6c 69 70 20 3d 20 67 65 |...fullC|lip = ge|
|00000a80| 74 63 6c 69 70 28 29 3b | 20 23 20 67 65 74 73 20 |tclip();| # gets |
|00000a90| 63 61 6c 6c 69 6e 67 20 | 65 64 69 74 6f 72 27 73 |calling |editor's|
|00000aa0| 20 70 72 69 76 61 74 65 | 20 63 6c 69 70 0d 09 09 | private| clip...|
|00000ab0| 6e 75 6d 4c 69 6e 65 73 | 20 3d 20 73 70 6c 69 74 |numLines| = split|
|00000ac0| 28 66 75 6c 6c 43 6c 69 | 70 2c 20 6c 69 6e 65 73 |(fullCli|p, lines|
|00000ad0| 2c 20 22 5c 72 22 29 3b | 0d 09 09 23 20 77 69 74 |, "\r");|...# wit|
|00000ae0| 68 20 22 73 70 6c 69 74 | 22 2c 20 74 68 65 20 6c |h "split|", the l|
|00000af0| 61 73 74 20 6c 69 6e 65 | 20 77 69 6c 6c 20 62 65 |ast line| will be|
|00000b00| 20 65 6d 70 74 79 20 69 | 66 20 74 68 65 20 6c 61 | empty i|f the la|
|00000b10| 73 74 0d 09 09 23 20 63 | 68 61 72 61 63 74 65 72 |st...# c|haracter|
|00000b20| 20 63 6f 70 69 65 64 20 | 77 61 73 20 61 20 72 65 | copied |was a re|
|00000b30| 74 75 72 6e 2e 0d 09 09 | 69 66 20 28 6c 69 6e 65 |turn....|if (line|
|00000b40| 73 5b 6e 75 6d 4c 69 6e | 65 73 5d 20 3d 3d 20 22 |s[numLin|es] == "|
|00000b50| 22 29 0d 09 09 09 2d 2d | 6e 75 6d 4c 69 6e 65 73 |")....--|numLines|
|00000b60| 3b 0d 09 09 0d 09 09 23 | 2e 2e 2e 64 6f 20 74 68 |;......#|...do th|
|00000b70| 69 6e 67 73 20 77 69 74 | 68 20 74 68 65 20 63 6c |ings wit|h the cl|
|00000b80| 69 70 62 6f 61 72 64 2c | 20 61 6e 64 20 63 72 65 |ipboard,| and cre|
|00000b90| 61 74 65 20 74 68 65 20 | 6e 65 77 20 63 6c 69 70 |ate the |new clip|
|00000ba0| 20 22 6f 75 74 22 0d 09 | 09 23 23 23 20 6a 75 73 | "out"..|.### jus|
|00000bb0| 74 20 66 6f 72 20 65 78 | 61 6d 70 6c 65 2c 20 6b |t for ex|ample, k|
|00000bc0| 65 65 70 20 6f 6e 6c 79 | 20 74 68 65 20 6c 61 73 |eep only| the las|
|00000bd0| 74 20 6c 69 6e 65 20 6f | 66 20 74 68 65 20 6f 6c |t line o|f the ol|
|00000be0| 64 20 63 6c 69 70 0d 09 | 09 6f 75 74 20 3d 20 6f |d clip..|.out = o|
|00000bf0| 75 74 20 6c 69 6e 65 73 | 5b 6e 75 6d 4c 69 6e 65 |ut lines|[numLine|
|00000c00| 73 5d 20 22 5c 72 22 3b | 0d 09 09 0d 09 09 23 20 |s] "\r";|......# |
|00000c10| 49 6e 20 74 68 69 73 20 | 73 70 65 63 69 66 69 63 |In this |specific|
|00000c20| 20 63 61 73 65 2c 20 73 | 69 6e 63 65 20 77 65 20 | case, s|ince we |
|00000c30| 61 72 65 20 6c 6f 6f 6b | 69 6e 67 20 66 6f 72 20 |are look|ing for |
|00000c40| 61 20 73 70 61 63 65 20 | 61 74 0d 09 09 23 20 74 |a space |at...# t|
|00000c50| 68 65 20 62 65 67 69 6e | 6e 69 6e 67 20 6f 66 20 |he begin|ning of |
|00000c60| 74 68 65 20 63 6c 69 70 | 2c 20 6d 61 6b 65 20 73 |the clip|, make s|
|00000c70| 75 72 65 20 6f 75 72 20 | 6e 65 77 20 63 6c 69 70 |ure our |new clip|
|00000c80| 20 64 6f 65 73 20 4e 4f | 54 0d 09 09 23 20 73 74 | does NO|T...# st|
|00000c90| 61 72 74 20 77 69 74 68 | 20 61 20 73 70 61 63 65 |art with| a space|
|00000ca0| 0d 09 09 73 75 62 28 2f | 5e 5b 20 5d 2b 2f 2c 20 |...sub(/|^[ ]+/, |
|00000cb0| 22 22 2c 20 6f 75 74 29 | 3b 20 23 20 74 68 61 74 |"", out)|; # that|
|00000cc0| 27 73 20 61 20 5b 73 70 | 61 63 65 5d 20 74 68 65 |'s a [sp|ace] the|
|00000cd0| 72 65 0d 09 09 0d 09 09 | 23 20 73 65 6e 64 20 74 |re......|# send t|
|00000ce0| 68 65 20 72 65 73 75 6c | 74 20 62 61 63 6b 20 74 |he resul|t back t|
|00000cf0| 6f 20 74 68 65 20 63 61 | 6c 6c 69 6e 67 20 65 64 |o the ca|lling ed|
|00000d00| 69 74 6f 72 27 73 20 63 | 6c 69 70 0d 09 09 70 75 |itor's c|lip...pu|
|00000d10| 74 63 6c 69 70 28 6f 75 | 74 29 3b 0d 09 09 23 20 |tclip(ou|t);...# |
|00000d20| 75 70 64 61 74 65 20 22 | 6f 6c 64 43 6c 69 70 22 |update "|oldClip"|
|00000d30| 0d 09 09 6f 6c 64 43 6c | 69 70 20 3d 20 73 75 62 |...oldCl|ip = sub|
|00000d40| 73 74 72 28 6f 75 74 2c | 20 31 2c 20 33 32 29 3b |str(out,| 1, 32);|
|00000d50| 0d 09 09 23 20 66 6c 61 | 73 68 20 6d 65 6e 75 20 |...# fla|sh menu |
|00000d60| 62 61 72 20 74 6f 20 73 | 69 67 6e 61 6c 20 73 6f |bar to s|ignal so|
|00000d70| 6d 65 74 68 69 6e 67 20 | 68 61 70 70 65 6e 65 64 |mething |happened|
|00000d80| 0d 09 09 62 65 65 70 28 | 30 29 3b 0d 09 09 7d 0d |...beep(|0);...}.|
|00000d90| 28 79 6f 75 27 6c 6c 20 | 61 6c 73 6f 20 66 69 6e |(you'll |also fin|
|00000da0| 64 20 74 68 65 20 61 62 | 6f 76 65 20 70 72 6f 67 |d the ab|ove prog|
|00000db0| 72 61 6d 20 69 6e 20 79 | 6f 75 72 20 22 68 41 57 |ram in y|our "hAW|
|00000dc0| 4b 20 70 72 6f 67 72 61 | 6d 73 22 20 66 6f 6c 64 |K progra|ms" fold|
|00000dd0| 65 72 29 0d 0d 54 68 65 | 20 6d 6f 6e 69 74 6f 72 |er)..The| monitor|
|00000de0| 69 6e 67 20 61 6c 6c 20 | 74 61 6b 65 73 20 70 6c |ing all |takes pl|
|00000df0| 61 63 65 20 69 6e 20 79 | 6f 75 72 20 42 45 47 49 |ace in y|our BEGI|
|00000e00| 4e 20 73 65 63 74 69 6f | 6e 20 28 6f 72 2c 20 69 |N sectio|n (or, i|
|00000e10| 66 20 79 6f 75 0d 70 72 | 65 66 65 72 2c 20 69 6e |f you.pr|efer, in|
|00000e20| 20 79 6f 75 72 20 45 4e | 44 20 73 65 63 74 69 6f | your EN|D sectio|
|00000e30| 6e 20 61 66 74 65 72 20 | 72 65 61 64 69 6e 67 20 |n after |reading |
|00000e40| 73 6f 6d 65 20 69 6e 70 | 75 74 29 2e 20 52 75 6e |some inp|ut). Run|
|00000e50| 6e 69 6e 67 0d 66 6f 72 | 65 76 65 72 2c 20 77 65 |ning.for|ever, we|
|00000e60| 20 6c 6f 6f 6b 20 61 74 | 20 6a 75 73 74 20 74 68 | look at| just th|
|00000e70| 65 20 66 69 72 73 74 20 | 33 32 20 63 68 61 72 61 |e first |32 chara|
|00000e80| 63 74 65 72 73 20 6f 66 | 20 74 68 65 20 63 6c 69 |cters of| the cli|
|00000e90| 70 62 6f 61 72 64 0d 74 | 6f 20 73 65 65 20 69 66 |pboard.t|o see if|
|00000ea0| 20 74 68 65 20 63 6c 69 | 70 20 68 61 73 20 63 68 | the cli|p has ch|
|00000eb0| 61 6e 67 65 64 2e 20 49 | 66 20 74 68 65 20 63 6c |anged. I|f the cl|
|00000ec0| 69 70 20 68 61 73 20 63 | 68 61 6e 67 65 64 2c 20 |ip has c|hanged, |
|00000ed0| 61 6e 64 20 74 68 65 20 | 66 69 72 73 74 0d 63 68 |and the |first.ch|
|00000ee0| 61 72 61 63 74 65 72 20 | 6f 6e 20 69 74 20 69 73 |aracter |on it is|
|00000ef0| 20 61 20 73 70 61 63 65 | 2c 20 77 65 20 63 61 6c | a space|, we cal|
|00000f00| 6c 20 74 68 65 20 66 75 | 6e 63 74 69 6f 6e 20 44 |l the fu|nction D|
|00000f10| 6f 53 6f 6d 65 74 68 69 | 6e 67 28 29 2c 20 77 68 |oSomethi|ng(), wh|
|00000f20| 69 63 68 0d 72 65 74 72 | 69 65 76 65 73 20 74 68 |ich.retr|ieves th|
|00000f30| 65 20 65 6e 74 69 72 65 | 20 63 6c 69 70 62 6f 61 |e entire| clipboa|
|00000f40| 72 64 20 74 6f 20 22 66 | 75 6c 6c 43 6c 69 70 22 |rd to "f|ullClip"|
|00000f50| 2c 20 62 72 65 61 6b 73 | 20 69 74 20 69 6e 74 6f |, breaks| it into|
|00000f60| 20 73 65 70 61 72 61 74 | 65 0d 6c 69 6e 65 73 20 | separat|e.lines |
|00000f70| 69 6e 20 74 68 65 20 61 | 72 72 61 79 20 22 6c 69 |in the a|rray "li|
|00000f80| 6e 65 73 22 2c 20 63 72 | 65 61 74 65 73 20 61 20 |nes", cr|eates a |
|00000f90| 6e 65 77 20 63 6c 69 70 | 62 6f 61 72 64 20 73 74 |new clip|board st|
|00000fa0| 72 69 6e 67 20 69 6e 20 | 22 6f 75 74 22 2c 0d 77 |ring in |"out",.w|
|00000fb0| 72 69 74 65 73 20 69 74 | 20 62 61 63 6b 20 74 6f |rites it| back to|
|00000fc0| 20 45 6e 74 65 72 41 63 | 74 20 77 69 74 68 20 22 | EnterAc|t with "|
|00000fd0| 70 75 74 63 6c 69 70 28 | 29 22 2c 20 61 6e 64 20 |putclip(|)", and |
|00000fe0| 74 68 65 6e 20 66 6c 61 | 73 68 65 73 20 74 68 65 |then fla|shes the|
|00000ff0| 0d 6d 65 6e 75 20 62 61 | 72 20 74 6f 20 73 68 6f |.menu ba|r to sho|
|00001000| 77 20 73 6f 6d 65 74 68 | 69 6e 67 20 68 61 70 70 |w someth|ing happ|
|00001010| 65 6e 65 64 20 61 73 20 | 61 20 72 65 73 75 6c 74 |ened as |a result|
|00001020| 20 6f 66 20 74 68 65 20 | 43 6f 70 79 20 69 6e 0d | of the |Copy in.|
|00001030| 45 6e 74 65 72 41 63 74 | 2e 0d 0d 54 68 65 20 6c |EnterAct|...The l|
|00001040| 69 6e 65 0d 09 69 66 20 | 28 28 6e 65 77 43 6c 69 |ine..if |((newCli|
|00001050| 70 20 3d 20 67 65 74 63 | 6c 69 70 28 63 6c 69 70 |p = getc|lip(clip|
|00001060| 43 68 61 72 73 54 6f 57 | 61 74 63 68 29 29 20 21 |CharsToW|atch)) !|
|00001070| 3d 20 6f 6c 64 43 6c 69 | 70 29 0d 64 65 74 65 72 |= oldCli|p).deter|
|00001080| 6d 69 6e 65 73 20 69 66 | 20 74 68 65 20 66 69 72 |mines if| the fir|
|00001090| 73 74 20 33 32 20 63 68 | 61 72 61 63 74 65 72 73 |st 32 ch|aracters|
|000010a0| 20 6f 66 20 74 68 65 20 | 63 6c 69 70 62 6f 61 72 | of the |clipboar|
|000010b0| 64 20 68 61 76 65 20 63 | 68 61 6e 67 65 64 0d 73 |d have c|hanged.s|
|000010c0| 69 6e 63 65 20 74 68 65 | 20 6c 61 73 74 20 74 69 |ince the| last ti|
|000010d0| 6d 65 20 74 68 65 20 63 | 6c 69 70 62 6f 61 72 64 |me the c|lipboard|
|000010e0| 20 77 61 73 20 6c 6f 6f | 6b 65 64 20 61 74 2e 20 | was loo|ked at. |
|000010f0| 49 66 20 73 6f 2c 20 74 | 68 65 20 73 70 65 63 69 |If so, t|he speci|
|00001100| 66 69 63 0d 74 72 69 67 | 67 65 72 20 66 6f 72 20 |fic.trig|ger for |
|00001110| 64 6f 69 6e 67 20 73 6f | 6d 65 74 68 69 6e 67 20 |doing so|mething |
|00001120| 69 73 0d 09 69 66 20 28 | 73 75 62 73 74 72 28 6e |is..if (|substr(n|
|00001130| 65 77 43 6c 69 70 2c 20 | 31 2c 31 29 20 3d 3d 20 |ewClip, |1,1) == |
|00001140| 22 20 22 29 0d 09 09 44 | 6f 53 6f 6d 65 74 68 69 |" ")...D|oSomethi|
|00001150| 6e 67 28 29 0d 77 68 69 | 63 68 20 73 69 6d 70 6c |ng().whi|ch simpl|
|00001160| 79 20 63 68 65 63 6b 73 | 20 74 6f 20 73 65 65 20 |y checks| to see |
|00001170| 69 66 20 74 68 65 20 6c | 61 74 65 73 74 20 63 6c |if the l|atest cl|
|00001180| 69 70 62 6f 61 72 64 20 | 73 74 61 72 74 73 20 77 |ipboard |starts w|
|00001190| 69 74 68 20 61 20 73 70 | 61 63 65 2e 0d 0d 22 44 |ith a sp|ace..."D|
|000011a0| 6f 53 6f 6d 65 74 68 69 | 6e 67 28 29 22 20 72 65 |oSomethi|ng()" re|
|000011b0| 74 72 69 65 76 65 73 20 | 74 68 65 20 66 75 6c 6c |trieves |the full|
|000011c0| 20 63 6c 69 70 62 6f 61 | 72 64 20 28 75 70 20 74 | clipboa|rd (up t|
|000011d0| 6f 20 61 20 6c 69 6d 69 | 74 20 6f 66 20 33 32 4b |o a limi|t of 32K|
|000011e0| 0d 61 63 74 75 61 6c 6c | 79 29 20 61 6e 64 20 74 |.actuall|y) and t|
|000011f0| 68 65 6e 20 62 72 65 61 | 6b 73 20 69 74 20 69 6e |hen brea|ks it in|
|00001200| 74 6f 20 6c 69 6e 65 73 | 2c 20 61 66 74 65 72 20 |to lines|, after |
|00001210| 77 68 69 63 68 20 74 68 | 65 20 63 6c 69 70 20 69 |which th|e clip i|
|00001220| 73 20 61 74 0d 69 74 73 | 20 6d 65 72 63 79 2e 20 |s at.its| mercy. |
|00001230| 41 20 6e 65 77 20 63 6c | 69 70 20 73 74 72 69 6e |A new cl|ip strin|
|00001240| 67 20 69 73 20 63 72 65 | 61 74 65 64 20 69 6e 20 |g is cre|ated in |
|00001250| 22 6f 75 74 22 2c 20 61 | 6e 64 20 77 72 69 74 74 |"out", a|nd writt|
|00001260| 65 6e 20 62 61 63 6b 20 | 74 6f 0d 45 6e 74 65 72 |en back |to.Enter|
|00001270| 41 63 74 20 77 69 74 68 | 0d 09 70 75 74 63 6c 69 |Act with|..putcli|
|00001280| 70 28 6f 75 74 29 3b 0d | 54 68 65 20 22 62 65 65 |p(out);.|The "bee|
|00001290| 70 28 30 29 22 20 77 69 | 6c 6c 20 73 69 67 6e 61 |p(0)" wi|ll signa|
|000012a0| 6c 20 79 6f 75 20 74 68 | 61 74 20 74 68 69 73 20 |l you th|at this |
|000012b0| 68 41 57 4b 20 70 72 6f | 67 72 61 6d 20 68 61 73 |hAWK pro|gram has|
|000012c0| 20 62 65 65 6e 0d 74 72 | 69 67 67 65 72 65 64 20 | been.tr|iggered |
|000012d0| 74 6f 20 72 65 77 72 69 | 74 65 20 74 68 65 20 63 |to rewri|te the c|
|000012e0| 6c 69 70 62 6f 61 72 64 | 2e 0d 0d 57 69 74 68 20 |lipboard|...With |
|000012f0| 74 68 65 20 61 62 6f 76 | 65 20 70 72 6f 67 72 61 |the abov|e progra|
|00001300| 6d 20 72 75 6e 6e 69 6e | 67 2c 20 69 66 20 79 6f |m runnin|g, if yo|
|00001310| 75 20 63 6f 70 69 65 64 | 20 73 65 76 65 72 61 6c |u copied| several|
|00001320| 20 6c 69 6e 65 73 20 6f | 66 20 74 65 78 74 0d 62 | lines o|f text.b|
|00001330| 79 20 70 69 63 6b 69 6e | 67 20 43 6f 70 79 20 69 |y pickin|g Copy i|
|00001340| 6e 20 45 6e 74 65 72 61 | 63 74 2c 20 61 6e 64 20 |n Entera|ct, and |
|00001350| 74 68 65 20 66 69 72 73 | 74 20 6c 69 6e 65 20 62 |the firs|t line b|
|00001360| 65 67 61 6e 20 77 69 74 | 68 20 61 20 73 70 61 63 |egan wit|h a spac|
|00001370| 65 2c 0d 74 68 65 6e 20 | 79 6f 75 20 77 6f 75 6c |e,.then |you woul|
|00001380| 64 20 73 65 65 20 74 68 | 65 20 6d 65 6e 75 20 62 |d see th|e menu b|
|00001390| 61 72 20 66 6c 61 73 68 | 2e 20 49 66 20 79 6f 75 |ar flash|. If you|
|000013a0| 20 74 68 65 6e 20 64 69 | 64 20 61 20 50 61 73 74 | then di|d a Past|
|000013b0| 65 2c 20 74 68 65 0d 70 | 61 73 74 65 64 20 74 65 |e, the.p|asted te|
|000013c0| 78 74 20 77 6f 75 6c 64 | 20 74 75 72 6e 20 6f 75 |xt would| turn ou|
|000013d0| 74 20 74 6f 20 62 65 20 | 6f 6e 6c 79 20 74 68 65 |t to be |only the|
|000013e0| 20 6c 61 73 74 20 6c 69 | 6e 65 20 79 6f 75 20 6a | last li|ne you j|
|000013f0| 75 73 74 20 63 6f 70 69 | 65 64 0d 28 6d 69 6e 75 |ust copi|ed.(minu|
|00001400| 73 20 61 6e 79 20 6c 65 | 61 64 69 6e 67 20 73 70 |s any le|ading sp|
|00001410| 61 63 65 73 29 2e 20 49 | 66 20 79 6f 75 20 63 6f |aces). I|f you co|
|00001420| 70 69 65 64 20 74 65 78 | 74 20 74 68 61 74 20 64 |pied tex|t that d|
|00001430| 69 64 20 6e 6f 74 20 62 | 65 67 69 6e 0d 77 69 74 |id not b|egin.wit|
|00001440| 68 20 61 20 73 70 61 63 | 65 20 74 68 65 6e 20 74 |h a spac|e then t|
|00001450| 68 65 20 6d 65 6e 75 20 | 62 61 72 20 77 6f 75 6c |he menu |bar woul|
|00001460| 64 20 6e 6f 74 20 66 6c | 61 73 68 20 61 6e 64 20 |d not fl|ash and |
|00001470| 79 6f 75 72 20 63 6c 69 | 70 20 77 6f 75 6c 64 0d |your cli|p would.|
|00001480| 62 65 20 75 6e 63 68 61 | 6e 67 65 64 2e 0d 0d a4 |be uncha|nged....|
|00001490| 09 4f 74 68 65 72 20 65 | 78 61 6d 70 6c 65 73 0d |.Other e|xamples.|
|000014a0| 54 68 65 20 70 72 6f 67 | 72 61 6d 20 22 24 43 6c |The prog|ram "$Cl|
|000014b0| 69 70 4f 6c 64 43 44 65 | 63 6c 54 6f 4e 65 77 22 |ipOldCDe|clToNew"|
|000014c0| 20 69 73 20 61 20 76 65 | 72 79 20 72 65 61 6c 20 | is a ve|ry real |
|000014d0| 65 78 61 6d 70 6c 65 20 | 74 68 61 74 20 63 6f 6e |example |that con|
|000014e0| 76 65 72 74 73 0d 61 20 | 73 70 65 63 69 66 69 63 |verts.a |specific|
|000014f0| 20 73 74 79 6c 65 20 6f | 66 20 22 6f 6c 64 2d 66 | style o|f "old-f|
|00001500| 61 73 68 69 6f 6e 65 64 | 22 20 43 20 66 75 6e 63 |ashioned|" C func|
|00001510| 74 69 6f 6e 20 64 65 63 | 6c 61 72 61 74 69 6f 6e |tion dec|laration|
|00001520| 20 74 6f 20 74 68 65 20 | 6e 65 77 0d 41 4e 53 49 | to the |new.ANSI|
|00001530| 20 70 72 6f 74 6f 74 79 | 70 65 20 73 74 79 6c 65 | prototy|pe style|
|00001540| 2e 20 49 74 20 6c 6f 6f | 6b 73 20 66 6f 72 20 61 |. It loo|ks for a|
|00001550| 20 76 65 72 79 20 73 70 | 65 63 69 66 69 63 20 70 | very sp|ecific p|
|00001560| 61 74 74 65 72 6e 20 69 | 6e 20 74 68 65 0d 64 65 |attern i|n the.de|
|00001570| 63 6c 61 72 61 74 69 6f | 6e 2c 20 62 75 74 20 79 |claratio|n, but y|
|00001580| 6f 75 20 63 6f 75 6c 64 | 20 61 64 61 70 74 20 69 |ou could| adapt i|
|00001590| 74 20 74 6f 20 62 65 20 | 6d 6f 72 65 20 67 65 6e |t to be |more gen|
|000015a0| 65 72 61 6c 2e 20 49 74 | 20 73 61 76 65 64 20 6d |eral. It| saved m|
|000015b0| 65 0d 68 6f 75 72 73 20 | 6f 66 20 74 65 64 69 6f |e.hours |of tedio|
|000015c0| 75 73 20 77 6f 72 6b 2e | 0d 0d 22 24 43 6c 69 70 |us work.|.."$Clip|
|000015d0| 47 6c 6f 73 73 61 72 79 | 22 20 6c 65 74 73 20 79 |Glossary|" lets y|
|000015e0| 6f 75 20 72 65 6d 65 6d | 62 65 72 20 61 6e 64 20 |ou remem|ber and |
|000015f0| 65 78 70 61 6e 64 20 67 | 6c 6f 73 73 61 72 79 20 |expand g|lossary |
|00001600| 61 62 62 72 65 76 69 61 | 74 69 6f 6e 73 2e 0d 42 |abbrevia|tions..B|
|00001610| 6f 74 68 20 6d 61 6b 69 | 6e 67 20 61 6e 20 65 6e |oth maki|ng an en|
|00001620| 74 72 79 20 69 6e 20 79 | 6f 75 72 20 67 6c 6f 73 |try in y|our glos|
|00001630| 73 61 72 79 20 61 6e 64 | 20 65 78 70 61 6e 64 69 |sary and| expandi|
|00001640| 6e 67 20 61 20 67 6c 6f | 73 73 61 72 79 0d 65 6e |ng a glo|ssary.en|
|00001650| 74 72 79 20 77 6f 72 6b | 20 62 79 20 43 6f 70 79 |try work| by Copy|
|00001660| 20 61 6e 64 20 50 61 73 | 74 65 3a 20 74 6f 20 6d | and Pas|te: to m|
|00001670| 61 6b 65 20 61 6e 20 65 | 6e 74 72 79 2c 20 79 6f |ake an e|ntry, yo|
|00001680| 75 20 77 6f 75 6c 64 20 | 43 6f 70 79 0d 74 65 78 |u would |Copy.tex|
|00001690| 74 20 69 6e 20 74 68 65 | 20 66 6f 72 6d 61 74 20 |t in the| format |
|000016a0| 67 6c 6f 73 73 20 61 62 | 62 72 65 76 69 61 74 69 |gloss ab|breviati|
|000016b0| 6f 6e 20 66 75 6c 6c 20 | 74 65 78 74 2c 20 61 73 |on full |text, as|
|000016c0| 20 69 6e 0d 09 67 6c 6f | 73 73 20 66 6f 72 6c 6f | in..glo|ss forlo|
|000016d0| 6f 70 20 66 6f 72 20 28 | 69 20 3d 20 30 3b 20 69 |op for (|i = 0; i|
|000016e0| 20 3c 3d 20 3f 3f 3b 20 | 2b 2b 69 29 0d 09 09 7b | <= ??; |++i)...{|
|000016f0| 0d 09 09 0d 09 09 7d 0d | 2d 2d 74 68 65 20 22 67 |......}.|--the "g|
|00001700| 6c 6f 73 73 22 20 70 61 | 72 74 20 73 65 72 76 65 |loss" pa|rt serve|
|00001710| 73 20 61 20 73 69 67 6e | 61 6c 20 74 68 61 74 20 |s a sign|al that |
|00001720| 79 6f 75 20 61 72 65 20 | 6d 61 6b 69 6e 67 20 61 |you are |making a|
|00001730| 6e 20 65 6e 74 72 79 2c | 0d 61 6e 64 20 74 68 65 |n entry,|.and the|
|00001740| 20 6d 65 6e 75 20 62 61 | 72 20 77 69 6c 6c 20 66 | menu ba|r will f|
|00001750| 6c 61 73 68 20 74 6f 20 | 73 68 6f 77 20 74 68 61 |lash to |show tha|
|00001760| 74 20 74 68 65 20 65 6e | 74 72 79 20 68 61 73 20 |t the en|try has |
|00001770| 62 65 65 6e 20 6d 61 64 | 65 2e 0d 54 6f 20 65 78 |been mad|e..To ex|
|00001780| 70 61 6e 64 20 74 68 69 | 73 20 65 6e 74 72 79 2c |pand thi|s entry,|
|00001790| 20 79 6f 75 20 77 6f 75 | 6c 64 20 74 79 70 65 20 | you wou|ld type |
|000017a0| 22 66 6f 72 6c 6f 6f 70 | 22 20 61 6e 64 20 74 68 |"forloop|" and th|
|000017b0| 65 6e 20 43 6f 70 79 20 | 69 74 0d 61 6e 64 20 50 |en Copy |it.and P|
|000017c0| 61 73 74 65 20 72 69 67 | 68 74 20 6f 76 65 72 20 |aste rig|ht over |
|000017d0| 69 74 20 28 61 66 74 65 | 72 20 74 68 65 20 6d 65 |it (afte|r the me|
|000017e0| 6e 75 20 62 61 72 20 66 | 6c 61 73 68 65 73 29 20 |nu bar f|lashes) |
|000017f0| 74 6f 20 70 72 6f 64 75 | 63 65 0d 09 66 6f 72 20 |to produ|ce..for |
|00001800| 28 69 20 3d 20 30 3b 20 | 69 20 3c 3d 20 3f 3f 3b |(i = 0; |i <= ??;|
|00001810| 20 2b 2b 69 29 0d 09 09 | 7b 0d 09 09 0d 09 09 7d | ++i)...|{......}|
|00001820| 0d 0d a4 09 28 3f 29 0d | 49 66 20 74 68 65 20 61 |....(?).|If the a|
|00001830| 62 6f 76 65 20 64 69 64 | 6e 27 74 20 6d 61 6b 65 |bove did|n't make|
|00001840| 20 6d 75 63 68 20 73 65 | 6e 73 65 20 79 65 74 2c | much se|nse yet,|
|00001850| 20 62 75 74 20 79 6f 75 | 20 72 65 61 6c 6c 79 20 | but you| really |
|00001860| 77 6f 75 6c 64 20 6c 69 | 6b 65 20 61 0d 6d 61 67 |would li|ke a.mag|
|00001870| 69 63 20 63 6c 69 70 62 | 6f 61 72 64 2c 20 6a 75 |ic clipb|oard, ju|
|00001880| 73 74 20 73 74 61 72 74 | 20 69 6e 20 6f 6e 20 74 |st start| in on t|
|00001890| 68 65 20 22 68 41 57 4b | 20 55 73 65 72 27 73 20 |he "hAWK| User's |
|000018a0| 4d 61 6e 75 61 6c 22 20 | 61 6e 64 20 79 6f 75 27 |Manual" |and you'|
|000018b0| 6c 6c 0d 62 65 20 77 72 | 69 74 69 6e 67 20 79 6f |ll.be wr|iting yo|
|000018c0| 75 72 20 6f 77 6e 20 68 | 41 57 4b 20 70 72 6f 67 |ur own h|AWK prog|
|000018d0| 72 61 6d 73 20 69 6e 20 | 73 68 6f 72 74 20 6f 72 |rams in |short or|
|000018e0| 64 65 72 2e 20 68 41 57 | 4b 20 69 73 20 61 0d 4d |der. hAW|K is a.M|
|000018f0| 61 63 20 76 65 72 73 69 | 6f 6e 20 6f 66 20 41 57 |ac versi|on of AW|
|00001900| 4b 2c 20 61 6e 20 69 6e | 74 65 72 70 72 65 74 65 |K, an in|terprete|
|00001910| 64 20 6c 61 6e 67 75 61 | 67 65 20 74 68 61 74 27 |d langua|ge that'|
|00001920| 73 20 6c 69 6b 65 20 43 | 20 62 75 74 20 77 69 74 |s like C| but wit|
|00001930| 68 0d 6d 61 6e 79 20 62 | 75 69 6c 74 2d 69 6e 20 |h.many b|uilt-in |
|00001940| 66 75 6e 63 74 69 6f 6e | 73 20 66 6f 72 20 74 65 |function|s for te|
|00001950| 78 74 20 61 6e 64 20 64 | 61 74 61 20 6d 61 6e 69 |xt and d|ata mani|
|00001960| 70 75 6c 61 74 69 6f 6e | 2e 20 41 73 20 79 6f 75 |pulation|. As you|
|00001970| 27 76 65 0d 73 65 65 6e | 2c 20 72 75 6e 6e 69 6e |'ve.seen|, runnin|
|00001980| 67 20 61 20 68 41 57 4b | 20 70 72 6f 67 72 61 6d |g a hAWK| program|
|00001990| 20 69 73 20 70 72 65 74 | 74 79 20 65 61 73 79 3a | is pret|ty easy:|
|000019a0| 20 77 72 69 74 69 6e 67 | 20 74 68 65 6d 20 69 73 | writing| them is|
|000019b0| 6e 27 74 20 74 68 61 74 | 0d 68 61 72 64 20 65 69 |n't that|.hard ei|
|000019c0| 74 68 65 72 2c 20 65 73 | 70 65 63 69 61 6c 6c 79 |ther, es|pecially|
|000019d0| 20 69 66 20 79 6f 75 20 | 6b 6e 6f 77 20 43 20 28 | if you |know C (|
|000019e0| 61 20 67 6f 6f 64 20 62 | 65 74 29 2e 0d 00 00 00 |a good b|et).....|
|000019f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a00| 00 00 01 00 00 00 01 76 | 00 00 00 76 00 00 00 82 |.......v|...v....|
|00001a10| 00 00 1c ba 10 43 53 74 | 64 50 6f 70 75 70 50 61 |.....CSt|dPopupPa|
|00001a20| 6e 65 2e 63 70 74 02 00 | 00 00 54 45 58 54 4b 41 |ne.cpt..|..TEXTKA|
|00001a30| 1a 45 6e 74 65 72 41 63 | 74 27 73 20 6d 61 67 69 |.EnterAc|t's magi|
|00001a40| 63 20 63 6c 69 70 62 6f | 61 72 64 61 02 00 00 00 |c clipbo|arda....|
|00001a50| 00 00 54 45 58 54 4b 45 | 45 4e 01 00 00 9c 00 00 |..TEXTKE|EN......|
|00001a60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001a70| 00 00 ab 49 da 75 00 00 | 19 6d 00 00 01 f8 00 00 |...I.u..|.m......|
|00001a80| 00 00 00 00 00 00 00 00 | 00 00 00 00 15 00 00 00 |........|........|
|00001a90| 1c ba 0f 43 53 74 64 50 | 6f 70 75 70 50 61 6e 65 |...CStdP|opupPane|
|00001aa0| 2e 68 02 00 00 00 54 45 | 58 54 4b 41 48 4c 01 00 |.h....TE|XTKAHL..|
|00001ab0| 01 04 00 80 00 00 00 00 | 1c cc 00 00 00 00 0a 6f |........|.......o|
|00001ac0| 00 00 0c 00 00 00 00 00 | 00 00 00 00 00 00 a7 f9 |........|........|
|00001ad0| ac 5e aa 2b 48 31 00 00 | 00 00 00 00 00 00 00 00 |.^.+H1..|........|
|00001ae0| 00 00 00 00 00 00 00 00 | 00 00 00 00 57 59 00 02 |........|....WY..|
|00001af0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b00| 00 00 00 48 00 0c 47 65 | 6e 65 76 61 00 00 00 00 |...H..Ge|neva....|
|00001b10| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001b20| 00 00 00 00 00 00 00 04 | 00 04 00 30 00 22 02 53 |........|...0.".S|
|00001b30| 01 fe 00 30 00 22 02 53 | 01 fe ad ac b5 34 00 00 |...0.".S|.....4..|
|00001b40| 00 00 00 00 00 00 00 00 | 00 00 01 00 00 00 00 04 |........|........|
|00001b50| 00 04 00 04 00 00 00 0a | 00 0c 06 47 65 6e 65 76 |........|...Genev|
|00001b60| 61 00 00 00 00 04 ad ac | b5 34 00 00 00 08 00 30 |a.......|.4.....0|
|00001b70| 00 22 02 53 01 fe 00 00 | 01 00 00 00 01 76 00 00 |.".S....|.....v..|
|00001b80| 00 76 00 00 00 82 00 f4 | 7c c4 10 2a 00 00 00 1c |.v......||..*....|
|00001b90| 00 82 00 04 4d 50 53 52 | 00 00 00 2a 45 54 41 42 |....MPSR|...*ETAB|
|00001ba0| 00 00 00 36 45 46 4e 54 | 00 00 00 42 4a 41 47 5a |...6EFNT|...BJAGZ|
|00001bb0| 00 00 00 4e 57 53 49 5a | 00 00 00 5a 03 ed ff ff |...NWSIZ|...Z....|
|00001bc0| 00 00 00 00 00 f4 7a 78 | 03 ec ff ff 00 00 00 4c |......zx|.......L|
|00001bd0| 00 f4 7a 04 03 eb ff ff | 00 00 00 54 00 f4 7a 0c |..z.....|...T..z.|
|00001be0| 03 ed ff ff 00 00 00 62 | 00 f4 7c 3c 03 ee ff ff |.......b|..|<....|
|00001bf0| 00 00 00 6a 00 f4 79 d8 | 00 00 00 00 00 00 00 00 |...j..y.|........|
+--------+-------------------------+-------------------------+--------+--------+